package com.yida.gwj.report.domain.request;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.yida.gwj.common.valid.Update;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDate;

/**
 * @author lqq
 * @date 2024-02-28
 */
@ApiModel("系统结息新增或修改请求")
public class GwjSysCalculateRateRequest implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 主键ID
     */
    @ApiModelProperty("主键ID")
    @NotNull(groups = Update.class, message = "请求参数有误[id]为空")
    private Long id;

    /**
     * 结算日期
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @ApiModelProperty("结算日期")
    @NotNull(message = "结算日期不能为空")
    private LocalDate calculateTime;

    /**
     * 年增值收益（政府当次待分配利息）
     */
    @ApiModelProperty("年增值收益")
    @NotNull(message = "年增值收益不能为空")
    private BigDecimal yearBenefit;

    /**
     * 状态
     */
    @ApiModelProperty("状态")
    private String status;

    /**
     * 地区ID
     */
    @ApiModelProperty("地区ID")
    @NotNull(message = "地区不能为空")
    private Long areaId;

    /**
     * 备注
     */
    @ApiModelProperty("备注")
    private String remark;

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getAreaId() {
        return areaId;
    }

    public void setAreaId(Long areaIds) {
        this.areaId = areaIds;
    }

    public void setCalculateTime(LocalDate calculateTime) {
        this.calculateTime = calculateTime;
    }

    public LocalDate getCalculateTime() {
        return calculateTime;
    }

    public void setYearBenefit(BigDecimal yearBenefit) {
        this.yearBenefit = yearBenefit;
    }

    public BigDecimal getYearBenefit() {
        return yearBenefit;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getStatus() {
        return status;
    }
}
